﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using WalkingTec.Mvvm.Core;
using System.Text.Json.Serialization;
using TyMES.Model;

namespace TyMES.Model.Record
{
    /// <summary>
    /// 工位日志
    /// </summary>
	[Table("T_StationLogs")]

    [Display(Name = "_Model.StationLogRecord")]
    public class StationLogRecord : BasePoco
    {
        [Display(Name = "_Model._StationLogRecord._Date_Time")]
        [Comment("日期时间")]
        public DateTime? Date_Time { get; set; }
        [Display(Name = "_Model._StationLogRecord._LineCode")]
        [StringLength(100, ErrorMessage = "Validate.{0}stringmax{1}")]
        [Comment("产线编号")]
        public string LineCode { get; set; }
        [Display(Name = "_Model._StationLogRecord._StationCode")]
        [StringLength(100, ErrorMessage = "Validate.{0}stringmax{1}")]
        [Comment("工站编号")]
        public string StationCode { get; set; }
        [Display(Name = "_Model._StationLogRecord._Log")]
        [StringLength(1000, ErrorMessage = "Validate.{0}stringmax{1}")]
        [Comment("日志信息")]
        public string Log { get; set; }
        [Display(Name = "_Model._StationLogRecord._LogType")]
        [Comment("日志类型")]
        public string LogType { get; set; }

	}

}
